package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="PipeBoNumTjDTO")
public class PipeBoNumTjDTO {

    @NotNull(message = "区域标识")
    @ApiModelProperty(value = "区域标识", example="1")
    private String areaId;

    @NotNull(message = "区域名称")
    @ApiModelProperty(value = "区域名称", example="六合区")
    private String areaName;

    @NotNull(message = "管道总数不能为空")
    @Min(value = 0, message = "管道总数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "管道总数必须是整数")
    @ApiModelProperty(value = "管道总数", example="300")
    private String pipeNum;

    @NotNull(message = "管井总数不能为空")
    @Min(value = 0, message = "管井总数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "管井总数必须是整数")
    @ApiModelProperty(value = "管井总数", example="300")
    private String guanjinNum;

    @NotNull(message = "传感器总数不能为空")
    @Min(value = 0, message = "传感器总数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "传感器总数必须是整数")
    @ApiModelProperty(value = "传感器总数", example="300")
    private String sensorNum;

    @NotNull(message = "泵站总数不能为空")
    @Min(value = 0, message = "泵站总数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "泵站总数必须是整数")
    @ApiModelProperty(value = "泵站总数", example="300")
    private String benzanNum;
}